import React, { Component } from 'react';

export default class PermissionControl extends Component {
  static displayName = 'PermissionControl';

  constructor(props) {
    super(props);
    this.state = {};
  }

  render() {
    return (
      <div className="permission-control-page">
       {this.props.status != 'NOT_PRIVILEGED' ? [
          this.props.chart,
          this.state.message && 
            <div style={{
              fontSize: '25px',
              height: '540px',
              lineHeight: '540px',
              textAlign: 'center'
            }}>
              没有相关数据
            </div>
       ]
          :
            <div style={{width: "100%", height:"400px", textAlign:'center', lineHeight:"400px", background:"#eee"}}>没有权限查看此数据</div>
          }

      </div>
    );
  }
}
